package com.qf.zyh.dao;

import com.qf.zyh.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Integer> getRoleMenu(@Param("roleId") Integer roleId);

    List<Role> getRoleWithName(@Param("name") String name);

    List<Role> getRole();
}